export class ComponentRegistry {
    private static _instance : ComponentRegistry = new ComponentRegistry();
    private _components: Map<string, any> = new Map<string, any>();

    public static Instance() : ComponentRegistry {
        return this._instance;
    }

    public registerComponent(name: string, component: any) {
        this._components.set(name, component);
    }

    public getComponent(name: string) {
        return this._components.get(name);
    }
}